package com.qf.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * 吐槽
 * @author 千锋健哥
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//指定数据库名字
@Document("spit")
public class Spit implements Serializable {

    //主键id属性
    @Id
    private String _id;
    //内容
    private String content;
    //发布时间
    private Date publishtime;
    //吐槽人id
    private String userid;
    //昵称
    private String nickname;
    //浏览量
    private Integer visits;
    //点赞数
    private Integer thumbup;
    //分享数
    private Integer share;
    //回复数
    private Integer comment;
    //是否可见
    private String state;
    //上级id
    private String parentid;
}
